package com.myhomework.bean;

/**
 * @author nmm
 * @date 2024-03-2024/3/12
 * @deriction njm......
 */
public class Thief {

    public void Open(Door door) {
        System.out.println("小偷正在开门中");
        if (door instanceof  InStealDoor){
            ((InStealDoor) door).Warring();
            return;
        }
        door.Open();
    }
}